package cn.itcast.bos.service.base;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.QueryParam;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import cn.itcast.bos.domain.page.PageBean;
import cn.itcast.bos.domain.take_delivery.Promotion;

public interface PromotionService {
	// 保存活动
	void save(Promotion model);

	// 分页查询
	Page<Promotion> findPageData(Pageable pageable);

		//为前台返回分页数据total   rows
	@Path("/pageQuery")
	@GET
	PageBean<Promotion> findPageData(@QueryParam("page") int page, @QueryParam("rows") int rows);
}
